package com.katze.boot.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.katze.boot.system.domain.Role;
import com.katze.boot.system.domain.RoleMenu;

import java.util.List;
import java.util.Set;
import java.util.function.Function;

public interface RoleMenuService extends IService<RoleMenu> {

    void save(Role role);

    Function<Function<Long[], List<String>>, List<String>> resetRoleMenus(Role role);

    void deleteRoleMenusByRoleId(Object[] roleIds);

    void deleteRoleMenusByMenuId(Object[] roleIds);

    Set<String> getRoleMenusByRoleId(Object[] roleIds);
}
